package com.xiongjie.yapi.controller;

import com.xiongjie.yapi.entity.UserVO;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/public/user")
public class YAPIController {

    /**
     * 添加员工-员工列表
     * @deprecated 筛选状态在职，并且绑定了企业的员工
     * @menu 组织-角色管理
     * @status done
     * @param userName 用户名字
     */
    @PostMapping("/add")
    public UserVO addUser(@RequestParam(required=false, value="userName") String userName){
        System.out.println("测试yapi文档的上传");
        return new UserVO(userName);
    }

}
